4 ways to remove last character from string